﻿namespace K9Nano.Logging;

/// <summary>
/// 系统日志存储接口
/// </summary>
public interface ISystemLogStore: IDisposable
{
    Task<(int Total, IEnumerable<SystemLog>)> QueryAsync(string? sourceContext, string? level,
        DateTime from, DateTime to, int pageIndex, int pageSize, CancellationToken cancellation = default);

    Task<int> DeleteAsync(DateTime from, DateTime to, CancellationToken cancellation = default);
}
